package com.liyk.shop.service.impl;

import com.liyk.shop.domain.entity.TbUser;
import com.liyk.shop.mapper.TbUserMapper;
import com.liyk.shop.service.TbUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TbUserServiceImpl extends BaseServiceImpl<TbUser, TbUserMapper> implements TbUserService {

    @Resource
    private TbUserMapper tbUserMapper;

    public TbUser findByUsername(String username){
        TbUser tbUser = new TbUser();
        tbUser.setUsername(username);
        return this.get(tbUser);
    }
}
